package cn.rkylin.oms.warehouse.shiporder.dao;

import java.util.List;
import java.util.Map;

import cn.rkylin.oms.warehouse.shiporder.domain.Shiporder;
import cn.rkylin.oms.warehouse.shiporder.vo.ShiporderVO;

/**
 * 发货DAO
 * 
 * @author 齐涛
 * @version 1.0
 * @created 28-9-2017 10:51:30
 */
public interface ShiporderDAO {
    
    /**
     * 根据条件取得数量
     * @param params
     * @return
     * @throws Exception
     */
    public int selectCount(Map<String,Object> params) throws Exception;
    
    /**
     * 查询发货单信息
     * 
     * @param shiporderVO
     *            发货单VO
     * @return 发货单信息
     * @throws Exception
     *             异常
     */
    public ShiporderVO getShiporderInfo(ShiporderVO shiporderVO) throws Exception;

    public List<ShiporderVO> getShiporderList(ShiporderVO shiporderVO) throws Exception;
    /**
     * 更新发货单(枷锁)
     *
     * @param stockIn
     *            发货单bean
     * @return 更新条数
     * @throws Exception
     *             异常
     */
    public int updateShiporderLock(Shiporder shiporder) throws Exception;
    /**
     * 更新发货单
     *
     * @param stockIn
     *            发货单bean
     * @return 更新条数
     * @throws Exception
     *             异常
     */
    public int updateShiporder(Shiporder shiporder) throws Exception;

    /**
     * 系统发货单主表信息插入数据库
     *
     * @param shiporderVO
     * @return
     * @throws Exception
     */
    public int insertSelectiveShiporder(ShiporderVO shiporderVO) throws Exception;

    public int update(ShiporderVO shiporder) throws Exception;

    public int shipedByOrderIdCount(Map<String, String> paramMap)  throws Exception;
}
